<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>code</title>
    <link rel="stylesheet" href="../../model/jsFn.css">
    <link rel="stylesheet" href="../../model/element.css">

</head>
<body>
<div class="catalog">
    <h1>目录</h1>
    <ul>
        <li>
            <p><a href="#profile">code</a></p>
            <ul>
                <li><p><a href="#jsFn_encode">encodeURIComponent</a></p></li>
                <li><p><a href="#jsFn_decode">decodeURIComponent</a></p></li>
            </ul>
        </li>
    </ul>
</div>

<div id="apicontent">

    <div id="profile">
        <h2>对象简介:</h2>
        <p>将字符串以URL编码,用于编码处理的函数;</p>
    </div>
    <div class="jsFnModel" id="jsFn_encode">
        <h3>encodeURIComponent（s）</h3>
        <div class="shape">
            <h3>函数使用样式</h3>
            <p>encodeURIComponent（s）</p>
        </div>
        <div class="profile">
            <h3>函数功能简介</h3>
            <p>encodeURIComponent：让字符串 编码</p>
        </div>
        <div class="version">
            <p>稳定性;2 - 稳定的}</p>
            <p>新增于:v0.0.0</p>
        </div>
        <div class="params">
            <h3>参数列表:</h3>
            <ul>
                <li>
                    <p>s</p>
                    <p>&nbsp;string&nbsp;</p>
                    <p>需要编码的字符串</p>
                </li>
            </ul>
        </div>
        <div class="res">
            <h3>返回值:</h3>
            <p>string</p>
        </div>
        <div class="code">
            <h3>例子</h3>
            <pre>
            <code>
                  let a=encodeURIComponent（'中'）;
                consol.log('中编码为',a);
                //  I/中编码为: %FF%FE%2D%4E

            </code>
        </pre>
        </div>
        <div class="error">
            <h3>抛出错误</h3>
        </div>
    </div>


    <div class="jsFnModel" id="jsFn_decode">
        <h3>decodeURIComponent(s)</h3>
        <div class="shape">
            <h3>函数使用样式</h3>
            <p>decodeURIComponent(s)</p>
        </div>
        <div class="profile">
            <h3>函数功能简介</h3>
            <p>decodeURIComponent方法会让字符串解码</p>
        </div>
        <div class="version">
            <p>稳定性;2 - 稳定的}</p>
            <p>新增于:v0.0.0</p>
        </div>
        <div class="params">
            <h3>参数列表:</h3>
            <ul>
                <li>
                    <p>s</p>
                    <p>&nbsp;string&nbsp;</p>
                    <p>需要解码的字符串</p>
                </li>
            </ul>
        </div>
        <div class="res">
            <h3>返回值:</h3>
            <p>string</p>
        </div>
        <div class="code">
            <h3>例子</h3>
            <pre>
            <code>
                let b=decodeURIComponent('%FF%FE%2D%4E');console.log('解码为',b);
                // I/解码为: 中
            </code>
        </pre>
        </div>
        <div class="error">
            <h3>抛出错误</h3>
        </div>
    </div>


    <div style="height: 5000px"></div>
</div>
<div class="author">
    <p>by-姜进</p>
</div>
</body>
</html>